/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.cjb.malacma.rssfeed.crawler;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import static java.lang.System.*;

/**
 *
 * @author malacma
 */
public class GoogleCrawler {

    public static final void main(String... a) throws MalformedURLException, IOException {
        URL url = new URL("http://br.search.yahoo.com/search?p=rss&searchsubmit=Buscar+na+web&fr=yfp&toggle=1&ei=UTF-8&site_origem=511183&yh=1&force=-1&lkout=1&rd=r1");
        BufferedReader in = new BufferedReader(
                new InputStreamReader(
                url.openStream()));

        String inputLine;

        while ((inputLine = in.readLine()) != null) {
            System.out.println(inputLine);
        }

        in.close();

    }
}
